package com.source.lightfowl.basedata.service;

import com.source.lightfowl.VO.SalesTerminalVO;
import com.source.lightfowl.basedata.entity.SalesTerminal;
import org.springframework.data.domain.Page;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Optional;

/**
 * @Author: 谢春泳
 * @Description:
 * @Date: 2020/1/10 13:01
 */
public interface SalesTerminalService {

    //3.3查
    List<SalesTerminalVO> findAll();
    //3.2查 分页
    Page<SalesTerminal> findAllPage(int page, int pageNum);
    //3.1查找根据id查找
    Optional<SalesTerminal> findById(Integer id);

    //1.增 或者改
    void save(SalesTerminal sh);

    //2.1删
    void deleteById(Integer id);
    //2.2批量删
    void deleteBatch(String ids);
}
